package com.park.dailytool.data.pojo.model.local;

import com.park.dailytool.annotation.Excel;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;

/**
 * @description 交易订单
 * @author huangding
 * @date 2018-12-07 15:08:15
 */
@Data
@Entity
@Table(name = "order_pay")
public class OrderPay  {


    /**
     *
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    /**
     *
     */
    @Column(name = "order_pay_no")
    private String orderPayNo;

    /**
     *
     */
    @Column(name = "car_account_id")
    private Integer carAccountId;

    /**
     * 支付类型1=缴费2=折扣充值3=年/月费充值
     */
    @Column(name = "order_type")
    private Integer orderType;

    /**
     * 订单状态 0=初始 1=成功 2=失败
     */
    @Column(name = "order_status")
    private Integer orderStatus;

    /**
     * 订单总金额(分)
     */
    @Column(name = "total_amount")
    @Excel(name = "充值金额(分)")
    private Integer totalAmount;

    /**
     * 实收金额(分)
     */
    @Column(name = "receive_amount")
    private Integer receiveAmount;

    /**
     * 优惠金额(分)
     */
    @Column(name = "discount_amount")
    private Integer discountAmount;

    /**
     * 支付时间
     */
    @Column(name = "pay_time")
    @Excel(name = "充值时间" ,dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime payTime;

    /**
     *
     */
    @Column(name = "pay_timestamp")
    private LocalDateTime payTimestamp;

    /**
     *
     */
    @Column(name = "update_time")
    private LocalDateTime updateTime;

    /**
     *
     */
    @Column(name = "update_timestamp")
    private LocalDateTime updateTimestamp;

    /**
     *
     */
    @Column(name = "create_time")
    private LocalDateTime createTime;

    /**
     *
     */
    @Column(name = "create_timestamp")
    private LocalDateTime createTimestamp;

    /**
     *
     */
    @Column(name = "data")
    private String data;


}